package org.cangku.dao;

import org.apache.ibatis.annotations.Param;
import org.cangku.entity.Xiaoshou;

import java.util.List;

public interface XiaoShouDao {
    /*往销售表中插入信息*/
    public int insert(Xiaoshou xiaoshou);
    /*分页条件查询*/
    public List<Xiaoshou> query(@Param("danhao") String danhao,@Param("offset") int offset,@Param("limit") int limit);
    /*分页条件获得数量*/
    public int getQueryCount(@Param("danhao") String danhao);
    /*根据员工id查询销售表*/
    public List<Xiaoshou> getXSinfo(int yid);

    public int delete(@Param("dingdan") String dingdan);

    /*获得员工编号*/
    public int getStaffid(@Param("dingdan") String dingdan);

    /*获得订单号的  总金额*/
    public double getZongQian(@Param("dingdan") String dingdan);
}
